import { getReq, postReq } from '@U/common'

// 获取活动日程列表
export const getActivityScheduleList = (params = {}) => getReq('/api/channel-agent/event-schedule/events-list', params)
// 获取参与主体列表
export const getJoinMainBodyList = () => getReq('/api/channel-agent/participants-list')
// 创建日程
export const createActivitySchedule = (params = {}) => postReq('/api/channel-agent/event-schedule/create', params, 'application/json;charset=UTF-8')
// 编辑日程
export const updateActivitySchedule = (params = {}) => postReq('/api/channel-agent/event-schedule/modify', params, 'application/json;charset=UTF-8')
// 取消日程
export const cancelSchedule = (params = {}) => postReq('/api/channel-agent/event-schedule/cancel', params, 'application/json;charset=UTF-8')
// 获取日程详情
export const getScheduleDetails = (params = {}) => getReq('/api/channel-agent/event-schedule/get', params)
// 创建日程活动记录
export const createScheduleRecords = (params = {}) => postReq('/api/channel-agent/event-schedule/create-detail', params, 'application/json;charset=UTF-8')
// 修改活动记录
export const updateScheduleRecords = (params = {}) => postReq('/api/channel-agent/event-schedule/modify-detail', params, 'application/json;charset=UTF-8')
